<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加账号</title>
</head>
<body>
	<h2>员工管理</h2>
	<form action="seachUserByCondition" name="seacher" method="post">
		<input type="text" name="condition" /><input type="submit" value="查找">
	</form>
	<table>
		<tr>
			<th>姓名</th>
			<th>账号名</th>
			<th>所属部门</th>
			<th>更多操作</th>
		</tr>
		<s:iterator value="userList" var="user">
			<TR>
				<td>${user.empName}</td>
				<td>${user.userName }</td>
				<td>${user.dempName }</td>
				<td><a href="dropByUserId?user.userId=${user.userId}">删除</a>
					&nbsp;<a
					href="addHoner?user.userId=${user.userId}">奖惩</a>
					&nbsp;<a
					href="getAllByUserId?user.userId=${user.userId}">详情</a>
					</td>
			</TR>
		</s:iterator>
		<tr>

		</tr>
	</table>
	<a href="getByPage?offset=0">首页</a>&nbsp;
	<a href="getByPage?offset=${offset}&flag=0">上一页</a>&nbsp;
	<a href="getByPage?offset=${offset}&flag=1">下一页</a>&nbsp;
	<a href="getByPage?offset=${offset}&flag=2">尾页</a>&nbsp;
	<span>共${total}页</span>

</body>
</html>